<template>
  <div>
    <slot name="header"></slot>
    <hr />
    <div>
      <div v-for="item in nameList" :key="item.id">
        <slot name="nameItem" :person="item"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "List",
  props: ["nameList"],
};
</script>

<style></style>
